package com.stone.weblog.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @program: weblog-springboot
 * @author: stone
 * @url: 1755545704@qq.com
 * @create: 2024-01-14 13:03
 * @description:
 */
@Getter
@Setter
public class BizException extends RuntimeException{
    private String errorCode;
    private String errorMessage;

    public BizException(BaseExceptionInterface baseExceptionInterface){
        this.errorCode=baseExceptionInterface.getErrorCode();
        this.errorMessage= baseExceptionInterface.getErrorMessage();
    }
}